<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta charset="UTF-8">
		<title>微站_共富网_Gofull.com.cn</title>
		<script src="/v3/js/jquery-1.10.2.min.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="/v3/css/home.css">
		<link type="text/css" rel="stylesheet" href="/v3/css/wstyle.css">
		<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script type="text/javascript" src="/v3/js/wechat-util.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?fe234a7328fe990456480a1f80e033a2";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
	</head>

	<body>
		<div id="header">
			<div class="h_face">
				<a href="/wchatUserCenter.do"><img src="/v3/images/face.png"/></a>
			</div>
			<div class="h_name"><a href="/wchatUserCenter.do">${sessionScope.user.userName}</a></div>
		</div>
		<div id="wrap">
			<ul class="d_stats">
				<li onclick="location.href='/getAccountBalanceInfo.do'">
					<b>可用余额</b>
					<strong><em>￥</em><fmt:formatNumber
								value="${accmountStatisMap.usableAmount}" pattern="#,##0.00#" /></strong>
				</li>
				<li class="d_line" onclick="location.href='/wchatAccount.do'">
					<b>总资产</b>
					<strong><em>￥</em><fmt:formatNumber
								value="${accmountStatisMap.accountSum + accmountStatisMap.forPaySum}"
								pattern="#,##0.00#"></fmt:formatNumber></strong>
				</li>
				<li>
					<b>累计收益</b>
					<strong><em>￥</em><fmt:formatNumber
								value="${accmountStatisMap.earnSum}" pattern="#,##0.00#" /></strong>
				</li>
			</ul>

			<div id="inv_area">
			<ul class="inv_stats">
				<li onclick="location.href='/wchatVoucher.do'">
					<div class="inv_item">
						<div class="my-act">
						<i class="pro-icon-gfq"><em>${availableVoucherCounts.num}</em></i>
						<span>投资券</span>
						</div>
					</div>
				</li>
				<li class="inv_m_line" onclick="location.href='/redPackInit.do'">
					<div class="inv_item">
						<div class="redB">
						<img src="/v3/images/event/redBag/redBag.gif" alt="共富红包"/>
						</div>
					</div>
				</li>
				<li onclick="location.href='/wchatFootPrint.do?mobile=${sessionScope.user.mobilePhone}'">
					<div class="inv_item">
						<div class="my-act">
						<i class="pro-icon-zuj"></i>
						<span>足迹</span>
						</div>
					</div>
				</li>
			</ul>
			<ul class="inv_stats">
				<s:if test="#request.yebMap.productStatus == 1">
				<li onclick="location.href='/loanYebDetailInvest.do?pid=${yebMap.pid }'">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-yeb"><em><fmt:formatNumber
								value="${yebAnnualRate }"
								pattern="#,###"></fmt:formatNumber><font>%</font></em></i>
						<span>余额宝</span>
						</div>
					</div>
				</li>
				</s:if>
				<s:else>
				<li>
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-yebDis"><em>售罄</em></i>
						<span>余额宝</span>
						</div>
					</div>
				</li>
				</s:else>
				<s:if test="#request.ylbMap.productStatus == 1">
				<li class="inv_m_line" onclick="location.href='/loanYlbDetailInvest.do?pid=${ylbMap.pid }'">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-ylb"><em><fmt:formatNumber
								value="${ylbMap.productAnnualRate }"
								pattern="#,###"></fmt:formatNumber><font>%</font></em></i>
						<span>月利宝 </span>
						</div>
					</div>
				</li>
				</s:if>
				<s:else>
				<li class="inv_m_line">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-ylbDis"><em>售罄</em></i>
						<span>月利宝 </span>
						</div>
					</div>
				</li>
				</s:else>
				<s:if test="#request.jfbMap.productStatus == 1">
				<li onclick="location.href='/loanJfbDetailInvest.do?pid=${jfbMap.pid }'">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-jfb"><em><fmt:formatNumber
								value="${jfbMap.productAnnualRate }"
								pattern="#,###"></fmt:formatNumber><font>%</font></em></i>
						<span>季发宝</span>
						</div>
					</div>
				</li>
				</s:if>
				<s:else>
				<li>
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-jfbDis"><em>售罄</em></i>
						<span>季发宝</span>
						</div>
					</div>
				</li>
				</s:else>
			</ul>
			<ul class="inv_stats">
				<s:if test="#request.wybMap.borrowStatus != 2">
				<li onclick="javascript:void(0);">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-wybDis"><em>售罄</em></i>
						<span>稳盈宝</span>
						</div>
					</div>
				</li>		
				</s:if>	
				<s:else>
				<li onclick="location.href='/loanWybDetailInvest.do'">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-wyb"><em><fmt:formatNumber
								value="${wybMap.annualRate }"
								pattern="#,###"></fmt:formatNumber><font>%</font></em></i>
						<span>稳盈宝</span>
						</div>
					</div>
				</li>
				</s:else>
				<s:if test="#request.debtMap.debtStatus != 2">
				<li class="inv_m_line" onclick="javascript:void(0);">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-zqxmDis"></i>
						<span>债权项目</span>
						</div>
					</div>
				</li>
				</s:if>
				<s:else>
				<li class="inv_m_line" onclick="location.href='/loanDebtDetailInvest.do'">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-zqxm"></i>
						<span>债权项目</span>
						</div>
						<div class="icon-sale"></div>
					</div>
				</li>
				</s:else>
				<li onclick="location.href='/wchatAutoInvestInit.do'">
					<div class="inv_item">
						<div class="my-pro">
						<i class="pro-icon-zdtz"></i>
						<span>自动投资</span>
						</div>
					</div>
				</li>
			</ul>
			</div>
			<ul class="other_bt">
				<li onclick="location.href='/wchatRepaymentRemind.do'">回款预测</li>
				<li onclick="location.href='/modifyPayPwd.do'">支付密码</li>
				<li onclick="location.href='/wchatHelp.do'">常见问题</li>
			</ul>
		</div>
		
		<section id="red-bgr" class="red-bgr"></section>
			<div id="showRedBtn" class="showRedBtn">
				<img src="/v3/images/event/redBag/redBag-Show.png" alt="领红包_共富网"/>
				<div class="redBtn" onclick="location.href='/redPackInit.do'">领红包</div>
			</div>
<script>
	$(window).load(function() {
		//$("#red-bgr").show();
		//$("#showRedBtn").show();
		var h = $("#header").height();
		var ds = $(".d_stats").height();
		var ft = $(".other_bt").height();
		var mH = $(window).height();
		var redH = $(".redB img").height();		
		var srbW = $("#showRedBtn").width();
		var srbH = $("#showRedBtn").height();	
		$(".redB img").css("margin-top",-(redH/2)+'px');
		$("#inv_area").height(mH-(h+ds+ft));
		$("#showRedBtn").css("margin-left",-(srbW/2)+'px');
		$("#showRedBtn").css("margin-top",-(srbH/2)+'px');
		$(window).resize(function() {
			myWindowResize();
		})
		function myWindowResize() {
			var h = $("#header").height();
			var ds = $(".d_stats").height();
			var ft = $(".other_bt").height();
			var mH = $(window).height();
			var redH = $(".redB img").height();	
			var srbW = $("#showRedBtn").width();	
			var srbH = $("#showRedBtn").height();		
			$(".redB img").css("margin-top",-(redH/2)+'px');
			$("#inv_area").height(mH-(h+ds+ft));
			$("#showRedBtn").css("margin-left",-(srbW/2)+'px');
			$("#showRedBtn").css("margin-top",-(srbH/2)+'px');
		}
		 $("#red-bgr").click(function (){
			$("#red-bgr").hide();
			$("#showRedBtn").hide();
 		});
	});

	$(function() {
		wechatUtil.config( [ 'hideOptionMenu' ]);
		wechatUtil.hideOptionMenu();
	});
</script>
	</body>
</html>
